package kr.or.javacafe.USCM.USCM105.dao;

import java.util.List;

import com.ibatis.sqlmap.client.SqlMapClient;

import kr.or.javacafe.common.dao.*;
import kr.or.javacafe.common.exception.KmtcDAOException;
import kr.or.javacafe.common.exception.KmtcException;

public class USCM105DAOImpl extends JdbcDaoSupport implements USCM105DAO {
	public List selectMemberList() throws KmtcException
	{
		SqlMapClient sqlMap = getSqlMapClient(); //POJOs new를 하지 않아도 Bean들을 만들어 놓았음
		
		try
		{
			Object objRet = sqlMap.queryForList("USCM105.selectMemberList"); //Ibatis 내부
			return (List)objRet;
		}		
		catch(Exception ex)
		{
			logger.debug("------------------------------------------------------------------");
			logger.debug("###Error### : " + getClass() + "." + "selectMemberList()" + " : " + ex.getMessage());
			logger.debug("------------------------------------------------------------------");
			throw new KmtcDAOException(ex);
		}
	}
}
